package real.honor;

public class Magic {
    //游客需逃到安全区，初始有魔法值（消耗10魔法值可瞬移60米，恢复4魔法值/秒），原始移动速度为17米/秒，求最远逃生距离。
    //：输入魔法值=10，总时间=5秒，输出最远距离
    public static int mostDetail(int magic, int time){
        int res = 0;
        int times = 4 * time;
        res = 17 * time + 60 * ((magic + times) / 10);
        return res;
    }

    public static void main(String[] args) {
        int magic = 10;
        int time = 5;
        int result = mostDetail(magic, time);
        System.out.println("最远逃生距离：" + result);
    }
}
